var textFormatter = function(s){
	return '<span style=\"color:#15428B;font-weight:bold\">' + s + '</span>';
};

var msgCt;
function msgEmergente(title, text){
	msgEmergenteSegs(title, text, 2000);
}

function msgEmergenteSegs(title, text, segs){
    if(!msgCt){
        msgCt = Ext.DomHelper.insertFirst(document.body, {id:'msg-div'}, true);
    }
    msgCt.alignTo(document, 't-t');
    Ext.DomHelper.append(msgCt, {html: '<div class="msg x-box-blue"><div class="x-box-tl"><div class="x-box-tr"><div class="x-box-tc"></div></div></div><div class="x-box-ml"><div class="x-box-mr"><div class="x-box-mc"><h3>' + textFormatter(title) + '</h3>' + textFormatter(text) + '</div></div></div><div class="x-box-bl"><div class="x-box-br"><div class="x-box-bc"></div></div></div></div>'}, true).slideIn('t').pause(segs).ghost("t", {remove:true});
}